import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int n = in.nextInt();
            for (int i = 0; i < n ; i++) {
                for (int j = 0; j < n; j++) {
                    if (i == j) {
                        System.out.print("*");//相等为*
                    } else if (j == n - i - 1) {
                        System.out.print("*");//j=n-i-1也为*
                    } else {
                        System.out.print(" ");//其余打印空格
                    }
                }
                System.out.println();//换行打印
            }

        }
    }
}